package com.danger.Model;

import com.danger.Util.annotation.TreeNodeId;
import com.danger.Util.annotation.TreeNodeLabel;
import com.danger.Util.annotation.TreeNodePid;

/**
 * Created by 俊 on 2016/6/10.
 */
public class FileBean {

    @TreeNodeId
    private int id;
    //父节点标识
    @TreeNodePid
    private int pId;
    @TreeNodeLabel
    private String label;
    private String desc;

    public FileBean(int id, int pId, String label) {
        this.id = id;
        this.pId = pId;
        this.label = label;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "FileBean{" +
                "id=" + id +
                ", pId=" + pId +
                ", label='" + label + '\'' +
                ", desc='" + desc + '\'' +
                '}';
    }
}
